package ru.arriah.servicedesk.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import ru.arriah.common.bean.GenericBean;

public class TaskStatusBean extends GenericBean {

   private String status;
   
   public TaskStatusBean() {
      super();
   }    
   
   public TaskStatusBean(ResultSet resultSet) {
      fillFromResultSet(resultSet);
   }
   
   @Override
   public void fillFromResultSet(ResultSet resultSet) {      
      try {
         setStatus(resultSet.getString("taskstatus.status_name"));
         setId(resultSet.getInt("taskstatus.id"));
      } catch (SQLException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }
   }
   
   public String getStatus() {
      return status;
   }

   public void setStatus(String status) {
      this.status = status;
   }

   @Override
   public boolean isValid() {
      // TODO Auto-generated method stub
      return false;
   }
}